cargo-doc: do not build under nodoc profile
authorLuca Bruno <lucab@debian.org>
Sun, 28 Feb 2016 10:11:33 +0000 (11:11 +0100)
committerLuca Bruno <lucab@debian.org>
Thu, 3 Mar 2016 21:41:25 +0000 (22:41 +0100)
debian/control
debian/rules

index 367c0be69b763a66c4d25e81668690aef9442f12..b9d87abbb3fb46dc3f84382919a642cb359fa28a 100644 (file)
@@ -53,6 +53,7 @@ Description: Rust package manager
 Package: cargo-doc
 Section: doc
 Architecture: all
+Build-Profiles: <!nodoc>
 Depends: ${misc:Depends}, libjs-jquery
 Description: Rust package manager, documentation
  Cargo is a tool that allows Rust projects to declare their various
index 24fc6bdfff0501d78e6aab0bbba285f1eb9b2e00..3df0f716eb088d385d5516a684853e651f3c9052 100755 (executable)
@@ -56,8 +56,10 @@ endif
                --local-cargo=$(CURDIR)/cargo-stage0
        # Build final cargo binary and docs
        $(MAKE)
+ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
        $(MAKE) doc
        cd target/doc/ && rm -f jquery.js && ln -s /usr/share/javascript/jquery/jquery.js
+endif
 
        # Restore from workarounds
        mv $(CURDIR)/.deps $(DEPSDIR)